package com.xoa.dev.pz.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.xoa.model.enclosure.Attachment;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

public class PzHouseService {
    private String gridName;
    private String userName;
    private Integer gridId;

    private String houseName;

    public void setGridId(Integer gridId) {
        this.gridId = gridId;
    }

    public Integer getGridId() {
        return gridId;
    }

    public void setGridName(String gridName) {
        this.gridName = gridName;
    }

    public String getGridName() {
        return gridName==null?"":gridName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName==null?"":userName;
    }

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column pz_house_service.SERVER_ID
     *
     * @mbggenerated
     */
    private Integer serverId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column pz_house_service.SERVER_TIME
     *
     * @mbggenerated
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date serverTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column pz_house_service.SERVER_ADDRESS
     *
     * @mbggenerated
     */
    private String serverAddress;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column pz_house_service.SERVER_GRID_USER
     *
     * @mbggenerated
     */
    private String serverGridUser;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column pz_house_service.SERVER_FOLLOW
     *
     * @mbggenerated
     */
    private String serverFollow;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column pz_house_service.SERVER_RECORD_TYPE
     *
     * @mbggenerated
     */
    private String serverRecordType;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column pz_house_service.SERVER_CONTENT
     *
     * @mbggenerated
     */
    private String serverContent;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column pz_house_service.SERVER_RENT_ID
     *
     * @mbggenerated
     */
    private Integer serverRentId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column pz_house_service.SERVER_REMARK1
     *
     * @mbggenerated
     */
    private String serverRemark1;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column pz_house_service.SERVER_REMARK2
     *
     * @mbggenerated
     */
    private String serverRemark2;

    //附件集合
    List<Attachment> attachmentList;

    public String getHouseName() {
        return houseName;
    }

    public void setHouseName(String houseName) {
        this.houseName = houseName;
    }

    public List<Attachment> getAttachmentList() {
        return attachmentList;
    }

    public void setAttachmentList(List<Attachment> attachmentList) {
        this.attachmentList = attachmentList;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column pz_house_service.SERVER_ID
     *
     * @return the value of pz_house_service.SERVER_ID
     *
     * @mbggenerated
     */
    public Integer getServerId() {
        return serverId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column pz_house_service.SERVER_ID
     *
     * @param serverId the value for pz_house_service.SERVER_ID
     *
     * @mbggenerated
     */
    public void setServerId(Integer serverId) {
        this.serverId = serverId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column pz_house_service.SERVER_TIME
     *
     * @return the value of pz_house_service.SERVER_TIME
     *
     * @mbggenerated
     */
    public Date getServerTime() {
        return serverTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column pz_house_service.SERVER_TIME
     *
     * @param serverTime the value for pz_house_service.SERVER_TIME
     *
     * @mbggenerated
     */
    public void setServerTime(Date serverTime) {
        this.serverTime = serverTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column pz_house_service.SERVER_ADDRESS
     *
     * @return the value of pz_house_service.SERVER_ADDRESS
     *
     * @mbggenerated
     */
    public String getServerAddress() {
        return serverAddress==null?"":serverAddress;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column pz_house_service.SERVER_ADDRESS
     *
     * @param serverAddress the value for pz_house_service.SERVER_ADDRESS
     *
     * @mbggenerated
     */
    public void setServerAddress(String serverAddress) {
        this.serverAddress = serverAddress == null ? null : serverAddress.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column pz_house_service.SERVER_GRID_USER
     *
     * @return the value of pz_house_service.SERVER_GRID_USER
     *
     * @mbggenerated
     */
    public String getServerGridUser() {
        return serverGridUser==null?"":serverGridUser;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column pz_house_service.SERVER_GRID_USER
     *
     * @param serverGridUser the value for pz_house_service.SERVER_GRID_USER
     *
     * @mbggenerated
     */
    public void setServerGridUser(String serverGridUser) {
        this.serverGridUser = serverGridUser == null ? null : serverGridUser.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column pz_house_service.SERVER_FOLLOW
     *
     * @return the value of pz_house_service.SERVER_FOLLOW
     *
     * @mbggenerated
     */
    public String getServerFollow() {
        return serverFollow==null?"":serverFollow;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column pz_house_service.SERVER_FOLLOW
     *
     * @param serverFollow the value for pz_house_service.SERVER_FOLLOW
     *
     * @mbggenerated
     */
    public void setServerFollow(String serverFollow) {
        this.serverFollow = serverFollow == null ? null : serverFollow.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column pz_house_service.SERVER_RECORD_TYPE
     *
     * @return the value of pz_house_service.SERVER_RECORD_TYPE
     *
     * @mbggenerated
     */
    public String getServerRecordType() {
        return serverRecordType==null?"":serverRecordType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column pz_house_service.SERVER_RECORD_TYPE
     *
     * @param serverRecordType the value for pz_house_service.SERVER_RECORD_TYPE
     *
     * @mbggenerated
     */
    public void setServerRecordType(String serverRecordType) {
        this.serverRecordType = serverRecordType == null ? null : serverRecordType.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column pz_house_service.SERVER_CONTENT
     *
     * @return the value of pz_house_service.SERVER_CONTENT
     *
     * @mbggenerated
     */
    public String getServerContent() {
        return serverContent==null?"":serverContent;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column pz_house_service.SERVER_CONTENT
     *
     * @param serverContent the value for pz_house_service.SERVER_CONTENT
     *
     * @mbggenerated
     */
    public void setServerContent(String serverContent) {
        this.serverContent = serverContent == null ? null : serverContent.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column pz_house_service.SERVER_RENT_ID
     *
     * @return the value of pz_house_service.SERVER_RENT_ID
     *
     * @mbggenerated
     */
    public Integer getServerRentId() {
        return serverRentId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column pz_house_service.SERVER_RENT_ID
     *
     * @param serverRentId the value for pz_house_service.SERVER_RENT_ID
     *
     * @mbggenerated
     */
    public void setServerRentId(Integer serverRentId) {
        this.serverRentId = serverRentId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column pz_house_service.SERVER_REMARK1
     *
     * @return the value of pz_house_service.SERVER_REMARK1
     *
     * @mbggenerated
     */
    public String getServerRemark1() {
        return serverRemark1==null?"":serverRemark1;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column pz_house_service.SERVER_REMARK1
     *
     * @param serverRemark1 the value for pz_house_service.SERVER_REMARK1
     *
     * @mbggenerated
     */
    public void setServerRemark1(String serverRemark1) {
        this.serverRemark1 = serverRemark1 == null ? null : serverRemark1.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column pz_house_service.SERVER_REMARK2
     *
     * @return the value of pz_house_service.SERVER_REMARK2
     *
     * @mbggenerated
     */
    public String getServerRemark2() {
        return serverRemark2==null?"":serverRemark2;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column pz_house_service.SERVER_REMARK2
     *
     * @param serverRemark2 the value for pz_house_service.SERVER_REMARK2
     *
     * @mbggenerated
     */
    public void setServerRemark2(String serverRemark2) {
        this.serverRemark2 = serverRemark2 == null ? null : serverRemark2.trim();
    }
}